package cn.repository;

import cn.entity.Article;
import cn.entity.Comment;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.UUID;

/**
 * @author m on 2023/1/28
 * Description:
 */
public interface CommentRepository extends JpaRepository<Comment, UUID> {

    Integer countByArticle(Article article);

    List<Comment> findAllByOrderByCreateTimeDesc();

}
